package com.example.book.service;

import com.example.book.mapper.UserMapper;
import com.example.book.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    UserMapper userMapper;

    public UserInfo login(String username, String password) {
        return userMapper.login(username,password);
    }
}
